<template>
  <div>
    <h2>二次封装el-button，具有hover提示</h2>
    <new-button type="success" icon="el-icon-plus" size="mini" title="提示信息" @click="handler1" @hover="handler2" />
  </div>
</template>

<script>
import NewButton from "@/pages/test/attrsAndListeners/NewButton";

export default {
  components: { NewButton },
  methods:{
      handler1(){
        console.log('click,handler1');
      },
      handler2(){
        console.log('hover,handler2');
      }
  }
};
</script>

<style>
</style>